using QFramework.Framework;
using QFramework.Framework.Extension;
using UnityEditor;
using UnityEngine;
#if UNITY_EDITOR
#endif

namespace QFramework.Example.Util._7.Hide脚本
{
    /**
     * Hide 脚本-示例
     */
    public class HideExample : MonoBehaviourSimplify
    {
        private void Start()
        {
            this.Hide();
        }

#if UNITY_EDITOR
        [MenuItem("QFramework/Example/Util/7.Hide 脚本", false, 7)]
        public static void MenuClicked()
        {
            EditorApplication.isPlaying = true;

            var gameObj = new GameObject("HideExample");
            gameObj.AddComponent<HideExample>();
        }
#endif

        protected override void OnBeforeDestroy()
        {
        }
    }
}